package edu.sctu.lab03;

import java.util.Scanner;

/**
 * @Author:Mrzhang
 * @Description:
 * @Date:2018.06.06 17:43
 **/
public class Main2 {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        int n,m,k;
        n=in.nextInt();
        m=in.nextInt();
        k=in.nextInt();

        int [][] enjoy=new int[1000][2];

        for (int i=0;i<k;i++){
            enjoy[i][0]=in.nextInt();
            enjoy[i][1]=in.nextInt();
        }
    }
}
